package com.howso.cloud.feign;

import com.howso.cloud.feign.fallback.HowsoMenuServiceFallbackFactory;
import com.howso.cloud.oauth2.model.SysMenu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "uaa-server", fallbackFactory = HowsoMenuServiceFallbackFactory.class, decode404 = true)
public interface HowsoMenuService {
	/**
	 * 角色菜单列表
	 */
	@GetMapping(value = "/menus")
	List<SysMenu> findMenus();
}
